package com.lin.cloud.disk.entity.pojo;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 文件表(File)实体类
 *
 * @author ljc
 * @since 2021-02-03 17:40:44
 */
@Data
public class File {
    private static final long serialVersionUID = -93817019797550189L;

    @ApiModelProperty(value = "文件ID", name = "id")
    private Long id;

    @ApiModelProperty(value = "OSS存储桶名", name = "bucket")
    private String bucket;

    @ApiModelProperty(value = "OSS对象名", name = "objectName")
    private String objectName;

    @ApiModelProperty(value = "OSS对象上传ID", name = "uploadId")
    private String uploadId;

    @ApiModelProperty(value = "目录ID", name = "directoryId")
    private Long directoryId;

    @ApiModelProperty(value = "用户ID", name = "userId")
    private Long userId;

    @ApiModelProperty(value = "文件名", name = "fileName")
    private String fileName;

    @ApiModelProperty(value = "后缀名", name = "fileSuffix")
    private String fileSuffix;

    @ApiModelProperty(value = "文件大小", name = "fileSize")
    private Long fileSize;

    @ApiModelProperty(value = "下载链接", name = "url")
    private String url;


    @ApiModelProperty(value = "预览链接", name = "previewUrl")
    private String previewUrl;


    @ApiModelProperty(value = "上传状态： 0：未上传完成 1：已上传完成", name = "uploadStatus")
    private Integer uploadStatus;

    @ApiModelProperty(value = "文件MD5值", name = "md5")
    private String md5;

    @ApiModelProperty(value = "删除 0:未删除 1:删除", name = "isDelete")
    private Integer isDelete;

    @ApiModelProperty(value = "创建时间", name = "createTime")
    private Date createTime;

    @ApiModelProperty(value = "修改时间", name = "updateTime")
    private Date updateTime;

    @ApiModelProperty(value = "创建人", name = "createBy")
    private String createBy;

    @ApiModelProperty(value = "修改人", name = "updateBy")
    private String updateBy;

}